package cn.asoul.domain.strategy.service;

import cn.asoul.domain.strategy.service.armory.IStrategyArmory;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * @description: TODO
 * @author: chen
 * @date: 2025/3/7 1:42
 */
@Slf4j
@SpringBootTest
class StrategyArmoryTest {

    @Autowired
    private IStrategyArmory strategyArmory;

    @Test
    void assembleLotteryStrategy() {
        strategyArmory.assembleLotteryStrategy(100002L);

    }

    @Test
    void getRandomAwardId() {
        int n = 5;
        for (int i = 0; i < n; i++) {
            log.info("抽取到的奖品Id: {}", strategyArmory.getRandomAwardId(100002L));
        }
    }
}